<template>
    <div id="app">
        <Head :goback_custom="true" @gobackCustomMethod="$emit('hideSkill')">技能专长</Head>
        <input placeholder="请填写技能名称" v-model="sub.name"/>
        <div class="btn" @click="doSkill">保&nbsp;&nbsp;存</div>
    </div>
</template>
<script>
export default {
  components: {
  },
  data () {
    return {
      sub: {
        name: ''
      }
    }
  },
  methods: {
    doSkill () {
      if (!this.sub.name) {
        this.$notify('请填写技能名称')
        return false
      }
      this.$emit('doSkill', { skillName: this.sub.name })
      this.backList()
    },
    backList () {
      this.$emit('hideSkill')
    }
  }
}
</script>
<style lang="scss" scoped>
input{
    height: 60px;
    width: calc(100vw - 42px);
    color: #2a3140;
    font-size: 15px;
    border:none;
    outline: none;
    padding: 0px;
    margin: 0px;
    margin-left: 21px;
    border-bottom: 1px solid #f2f2f2;
}
input::-webkit-input-placeholder {
    color: #2a3140;
}
.btn{
    margin-top: 76px;
    margin-left: 21px;
    width: calc(100vw - 42px);
    height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #464646;
    border-radius: 50px;
    background-color: #fed700;
    box-shadow: 0px 1px 7px rgba($color: #fed700, $alpha: 0.8);
}
</style>
